<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko">
<head>
<title><?=$popup_record['po_subject']?></title>
<link href="/agency/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"  src="/js/popup.js"></script>
<script type="text/javascript">
//<![CDATA[
function open_window(url, width, height)
{		
	var feature = 'status,statusbars,scrollbars,width=' + width + ',height=' + height + ',top=50,left=150';
	window.open(url, '', feature);	
}
//]]>
</script>
</head>

<body>


<div style="position:absolute;width:<?=$popup_record['po_width']?>;overflow:hidden;z-index:999999;" id="lay_popup_skin<?=$seq?>">

<form name="popup_form" action="<?=$_SERVER['PHP_SELF']?>">
<input type='hidden' name='cookieName' value="<?=$Popup->_cookie_prefix.$popup_record['po_seq']?>" />

<table style="width:100%;height:100%" cellpadding='0' cellspacing='0'>
<?php if ($popup_record['po_img_path']) { ?>
<tr>
	<td><img src="<?=$App->_url_agency_data.$popup_record['po_img_path']?>"<?php if ($popup_record['po_map_txt']) { ?> usemap="#popup_map" <?php } ?> alt="팝업이미지" /></td>
</tr>
<?php } ?>
<?php if ($popup_record['po_html_path']) { ?>
<tr>
	<td><?php include_once $App->_dir_data . $popup_record['po_html_path']?></td>
</tr>
<?php } ?>
<tr>
	<td><?=nl2br($popup_record['po_txt'])?></td>
</tr>
<?php if ($popup_record['po_cookie']) { ?>
<tr>
	<td align='right' height="25" style='padding-right:5px;text-align:right;background:#cccccc;font-family: "", "u";font-size: 12px;'>
    <input type="checkbox" name="chk" id="chk_id" value="" onclick="closeWin(document.forms['popup_form']);" />
	<label for='chk_id'>오늘하루 이창을 열지 않음</label><a href="/" onclick="closeWin(document.forms['popup_form']); return false;"><img src="/agency/template/popup/images/close.gif" width="47" height="17" alt="닫기" /></a>
	</td>
</tr>
<?php } ?>
</table>
<?php if ($popup_record['po_map_txt']) { ?>
<map name="popup_map" id="popup_map">
	<?=str_replace('&', '&amp;', $popup_record['po_map_txt'])?>
</map>
<?php } ?>
  </form>
</div>

</body>
</html>